package com.example.entity.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author ZHAO Yudong
 * @Date 2020/11/17 13:38
 * @description：
 */
@NoArgsConstructor
@Data
public class ReportDataDTO {
    /**
     * data : {"totalSize":1,"totalPages":1,"reportList":[{"farmName":"高***家庭农场","registrationTime":null,"":"","code":"310114198411162219","city":"市辖区","legalid":122548,"black":0,"farmid":1008920,"abbreviation":null,"province":"上海市","registeredCapital":null,"contact":"176****2219","farmer":"高*","idNum":"310***********2219"}]}
     * success : true
     * message : getReportList finished!
     */

    private DataDTO data;
    private Boolean success;
    private String message;

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        /**
         * totalSize : 1
         * totalPages : 1
         * reportList : [{"farmName":"高***家庭农场","registrationTime":null,"":"","code":"310114198411162219","city":"市辖区","legalid":122548,"black":0,"farmid":1008920,"abbreviation":null,"province":"上海市","registeredCapital":null,"contact":"176****2219","farmer":"高*","idNum":"310***********2219"}]
         */

        private Integer totalSize;
        private Integer totalPages;
        private List<ReportListDTO> reportList;

        @NoArgsConstructor
        @Data
        public static class ReportListDTO {
            /**
             * farmName : 高***家庭农场
             * registrationTime : null
             * :
             * code : 310114198411162219
             * city : 市辖区
             * legalid : 122548
             * black : 0
             * farmid : 1008920
             * abbreviation : null
             * province : 上海市
             * registeredCapital : null
             * contact : 176****2219
             * farmer : 高*
             * idNum : 310***********2219
             */

            private String farmName;
            private Object registrationTime;
            private String _$212;// FIXME check this code
            private String code;
            private String city;
            private Integer legalid;
            private Integer black;
            private Integer farmid;
            private Object abbreviation;
            private String province;
            private Object registeredCapital;
            private String contact;
            private String farmer;
            private String idNum;
        }
    }
}
